﻿using Microsoft.EntityFrameworkCore;
using SmartCity.BasicData.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartCity.BasicData.Repo
{
    // created by FuMingJun
    public class SCDbcontext : DbContext
    {
        public SCDbcontext(DbContextOptions<SCDbcontext> options) : base(options)
        {
        }
        /// <summary>
        /// 账号数据集
        /// </summary>
        public DbSet<AccountModel> AccountModels { get; set; }
        /// <summary>
        /// 日志数据集
        /// </summary>
        public DbSet<LogModel> LogModels { get; set; }
        /// <summary>
        /// 行业数据集
        /// </summary>
        public DbSet<IndustryieModel> IndustryieModels { get; set; }
        /// <summary>
        /// 部门数据集
        /// </summary>
        public DbSet<DepartmentsModel> DepartmentsModels { get; set; }
         /// <summary>
         /// 角色数据集
         /// </summary>
        public DbSet<RoleModel> RoleModels { get; set; }
        public DbSet<AreasModel> AreasModels { get; set; }

        /// <summary>
        /// 专业网格数据集
        /// </summary>
        public DbSet<ProfessionalGridModel> ProfessionalGridModels { get; set; }
        /// <summary>
        /// 网格类型数据集
        /// </summary>
        public DbSet<GridTypeModel> GridTypeModels { get; set; }
        /// <summary>
        /// 网格类型和专业而网格关系映射数据集
        /// </summary>
        public DbSet<GridTypeProfessionMappingModel> GridTypeProfessionMappingModels { get; set; }







    }
}
